/*
 *      main.cpp
 *      
 *      Copyright 2009 AzureSky <AzureSky.fedora@gmail.com>
 *      
 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *      
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *      
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 */

#include <gtkmm.h>
#include <glibmm.h>
#include <iostream>
#include "./ui/main_win.h"

int main(int argc,char *argv[])
{	
	Gtk::Main kit(argc,argv);

	main_win* p_win;
	Glib::RefPtr<Gtk::Builder> refXml;
	try{
		refXml = Gtk::Builder::create_from_file("/usr/share/linux-helper/linux-helper.glade");
	}catch(const Gtk::BuilderError& ex){
		std::cerr << ex.what() << std::endl;
		return 1;
	}
    
	refXml -> get_widget_derived("linux_helper", p_win);
	kit.run(*p_win);

	return 0;
}
